package mybox.engine.heliostat;

import mybox.engine.Circle;
import mybox.engine.Figur;
import mybox.engine.File4Qcad;
import mybox.engine.QVector;

public class ZahnradLoecher implements Figur{
	
	public static double zentrumLochRadius=1.4;
	public static double peripherLochRadius=1.53261;
	public static double dist2Peripherie=6.9;
	
	public Circle center;
	public Circle[] peripherLoch = new Circle[4];
	
	public ZahnradLoecher(File4Qcad file4qcad, QVector centerPos) {
		
		center = new Circle(file4qcad, centerPos, zentrumLochRadius);
		peripherLoch[0] = new Circle(file4qcad, new QVector(centerPos.x+dist2Peripherie,centerPos.y), peripherLochRadius);
		peripherLoch[1] = new Circle(file4qcad, new QVector(centerPos.x,centerPos.y+dist2Peripherie), peripherLochRadius);
		peripherLoch[2] = new Circle(file4qcad, new QVector(centerPos.x-dist2Peripherie,centerPos.y), peripherLochRadius);
		peripherLoch[3] = new Circle(file4qcad, new QVector(centerPos.x,centerPos.y-dist2Peripherie), peripherLochRadius);
		
		
	}

	@Override
	public void draw() {
		center.draw();
		for (Circle periCircle : peripherLoch)
			periCircle.draw();		
	}

}
